<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>发布成绩</title>
    <link href="bootstrap-4.6.1-dist/css/bootstrap.css"
          rel="stylesheet" type="text/css">
    <style>
        .dropdown{
            margin-bottom: -20px;
        }
        .dropdown:hover{
            margin: 0px;
        }
        /*.show{*/
        /*    !*display: block;*!*/
        /*    overflow: hidden;*/
        /*    visibility: hidden;*/
        /*    max-height: 0px;*/
        /*    transform: scaleY(0);*/
        /*}*/
        /*.dropdown:hover .show{*/
        /*    visibility: visible;*/
        /*    overflow: hidden;*/
        /*    transition: transform 0.2s;*/
        /*    max-height: 999999px;*/
        /*    transform: scaleY(1);*/
        /*}*/
        .userPortrait {
            width: 40px;
            height: 40px;
            border: 1px solid red;
            border-radius: 50%;
            overflow: hidden;
            margin: 0 auto;
            /*margin-top: 100px;*/
        }
        .userPortrait img {
            display: block;
            width: 100%;
            height:100%;
            border: 1px solid green;
        }
        .zt{
            text-align:center;
        }
        .btn{
            background-color:dodgerblue;
            text-align: center;
            color:white;
            width:45%;
        }
        .bt{
            background-color:dodgerblue;
            text-align: center;
            color:white;
            width:120%;
            height:39.1px;
            border-radius: 5px;
        }
    </style>
</head>
<body>

<!--眉头-->
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
    <a class="navbar-brand col-1 text-center" href="index.html">爱思教育</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse">
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link active" href="#">提交成绩</a>
            </li>
        </ul>
    </div>
    <div class="userPortrait active dropdown">
        <a href="userInformation.html"><img src="img/defaultPortrait.jpg" alt=""></a>
    </div>
</nav>


<!--主页面-->
<div class="main col-10">

    <div class="row" style="margin-top:20px;">
        <div class="col-1">
        </div>
        <div class="col-10">
            <form id="form1">
                <table>
                    <tr>
                        <font  face="隶书" size="+4" color=black style="text-align:center">请输入ID和成绩</font>
                    </tr>
                    <tr>
                        <td>ID：</td>
                        <td>
                            <input class="form-control" type="text"  name="studentId" >
                        </td>
                        <td>成绩：</td>
                        <td>
                            <input class="form-control" type="text"  name="score" >
                        </td>
                        <td>
                            <button class="bt btn-primary" id="btnRootSearch" type="button" >发布</button>
                        </td>
                    </tr>
                </table>
            </form>
        </div>

        <!--            <div class="col-5">-->
        <!--                <form id="form2">-->
        <!--                    <table>-->
        <!--                        <tr>-->
        <!--                            <font  face="隶书" size="+4" color=black style="text-align:center">普通用户列表</font>-->
        <!--                        </tr>-->
        <!--                        <tr>-->
        <!--                            <td>姓名:</td>-->
        <!--                            <td>-->
        <!--                                <input type="text" name="userName">-->
        <!--                            </td>-->
        <!--                            <td>账号:</td>-->
        <!--                            <td>-->
        <!--                                <input type="text" name="userPhone">-->
        <!--                            </td>-->
        <!--                            <td>-->
        <!--                                &ensp;&ensp;&ensp;&ensp;-->
        <!--                            </td>-->
        <!--                            <td>-->
        <!--                                <button class="bt" type="submit" >查询</button>-->
        <!--                            </td>-->
        <!--                        </tr>-->
        <!--                    </table>-->
        <!--                </form>-->
        <!--            </div>-->
    </div>
</div>




    <!--            <div class="col-5">-->
    <!--                <table class="table table-bordered">-->
    <!--                    <thead class="thead-light" >-->
    <!--                    <tr>-->
    <!--                        <th scope="col" class="zt">#</th>-->
    <!--                        <th scope="col" class="zt">姓名</th>-->
    <!--                        <th scope="col" class="zt">账户</th>-->
    <!--                        <th scope="col" class="zt">操作</th>-->
    <!--                    </tr>-->
    <!--                    </thead>-->
    <!--                    <tbody>-->
    <!--                    <tr>-->
    <!--                        <th scope="row" class="zt">1</th>-->
    <!--                        <td class="zt">李四</td>-->
    <!--                        <td  class="zt">201911050xxx</td>-->
    <!--                        <td>-->
    <!--                            <button class="btn btn-primary  align-content-center text-center" type="submit" >解除管理员</button>-->
    <!--                            <button class="btn btn-primary  align-content-center text-center" type="submit" >删除账户</button>-->
    <!--                        </td>-->
    <!--                    </tr>-->
    <!--                    <tr>-->
    <!--                        <th scope="row" class="zt">1</th>-->
    <!--                        <td class="zt">张三</td>-->
    <!--                        <td class="zt">201911050xxx</td>-->
    <!--                        <td>-->
    <!--                            <button class="btn btn-primary  align-content-center text-center" type="submit" >解除管理员</button>-->
    <!--                            <button class="btn btn-primary  align-content-center text-center" type="submit" >删除账户</button>-->
    <!--                        </td>-->
    <!--                    </tr>-->
    <!--                    <tr>-->
    <!--                        <th scope="row" class="zt">1</th>-->
    <!--                        <td class="zt">张三</td>-->
    <!--                        <td class="zt">201911050xxx</td>-->
    <!--                        <td>-->
    <!--                            <button class="btn btn-primary  align-content-center text-center" type="submit" >解除管理员</button>-->

    <!--                            <button class="btn btn-primary  align-content-center text-center" type="submit" >删除账户</button>-->
    <!--                        </td>-->
    <!--                    </tr>-->
    <!--                    <tr>-->
    <!--                        <th scope="row" class="zt">1</th>-->
    <!--                        <td class="zt">张三</td>-->
    <!--                        <td class="zt">201911050xxx</td>-->
    <!--                        <td>-->
    <!--                            <button class="btn btn-primary  align-content-center text-center" type="submit" >解除管理员</button>-->

    <!--                            <button class="btn btn-primary  align-content-center text-center" type="submit" >删除账户</button>-->
    <!--                        </td>-->
    <!--                    </tr>-->
    <!--                    </tbody>-->
    <!--                </table>-->
    <!--            </div>-->
    <!--            <div class="col-1"></div>-->
</div>
</div>
<!--页脚-->
<div class="footer bg-primary fixed-bottom text-center">
    <p class="text-white">版权所有© Copyright 1999-2021 爱思软件股份有限公司　　中国·青岛黄岛区嘉陵江路777号 西区公寓2号   版本V-0.0.1</p>
</div>
</body>


<script src="jquery/jquery-3.6.0.min.js"></script>
<script src="bootstrap-4.6.1-dist/js/bootstrap.min.js"></script>
<script>
    jQuery(function () {
        jQuery("#btnRootSearch").click(function () {
            let form=jQuery("#form1").serialize();
            jQuery.post("teacher/change",form,function (rst) {
                if(rst==1)
                    alert("success");
            })
        });
    })

</script>
</html>

